package io.bluefw.blueui.dsl.render.widget;

import io.bluefw.blueui.dsl.Widget;
import io.bluefw.blueui.dsl.render.Render;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public abstract class WidgetRender extends Render {
	protected Widget widget;
	
	protected WidgetRender(String templateName) {
		super(templateName);
	}
	
	@Override
	public StringBuffer render() {
		return freemarker.render(this, this.getTemplateName());
	}
}
